package com.routz.nettydemo.customprotocol.entity;

import com.routz.nettydemo.customprotocol.util.Constant;

import java.util.Arrays;

/**
 * 设备信息 60 byte
 *      开始字节 0x21
 *      命令类型 0x60
 *
 *      定位状态
 *      分隔符,
 *      纬度字 9byte
 *      分隔符,
 *      纬度半球
 *      分隔符,
 *      经度字 10byte
 *      分隔符,
 *      经度半球
 *      分隔符,
 *      卡号字1	省略18字	卡号字20
 *
 *      保留字
 *      结束字节 0x2F
 *      校验和  2 byte
 *      校验和
 */
public class DeviceInfo {

    private Byte heanSign;
    private Byte cmdType;
    private GPRS gprs;
    private Byte keep;
    private Byte tailSign;
    private Integer checksum;

    public DeviceInfo() {
    }

    public DeviceInfo(Byte heanSign, Byte cmdType, GPRS gprs, Byte keep, Byte tailSign, Integer checksum) {
        this.heanSign = heanSign;
        this.cmdType = cmdType;
        this.gprs = gprs;
        this.keep = keep;
        this.tailSign = tailSign;
        this.checksum = checksum;
    }

    public Byte getHeanSign() {
        return heanSign;
    }

    public void setHeanSign(Byte heanSign) {
        this.heanSign = heanSign;
    }

    public Byte getCmdType() {
        return cmdType;
    }

    public void setCmdType(Byte cmdType) {
        this.cmdType = cmdType;
    }

    public GPRS getGprs() {
        return gprs;
    }

    public void setGprs(GPRS gprs) {
        this.gprs = gprs;
    }

    public Byte getKeep() {
        return keep;
    }

    public void setKeep(Byte keep) {
        this.keep = keep;
    }

    public Byte getTailSign() {
        return tailSign;
    }

    public void setTailSign(Byte tailSign) {
        this.tailSign = tailSign;
    }

    public Integer getChecksum() {
        return checksum;
    }

    public void setChecksum(Integer checksum) {
        this.checksum = checksum;
    }
}
